package com.cdn.dns.api.cloudflare.objects.worker;

import com.cdn.dns.api.cloudflare.objects.Identifiable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @see <a href="https://api.cloudflare.com/#worker-routes-enterprise--properties">https://api.cloudflare.com</a>
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@Builder
public class WorkerRoute implements Identifiable {

  @SerializedName("id")
  @Expose
  private String id;

  @SerializedName("pattern")
  @Expose
  private String pattern;

  @SerializedName("script")
  @Expose
  private String script;
}
